
(function () {
    window.BMap_loadScriptTime = (new Date).getTime();
    document.write('<script type="text/javascript" src="http://api.map.baidu.com/getscript?v=2.0&ak=aQmWWl3bH3UIhPvizbM64yAwpEhyRGY7&services=&t=20180629105709"></script>');
})();


var sContent =
    "<p style='margin-top: -3px;font-size:19px;text-align: center;;padding:0.2em 0'>地址</p>" +
    "<p style='letter-spacing: 2px;width: 270px;font-size:15px;height: 50px;text-align: center'>廊坊市广阳区北凤道与永兴路交口新世纪大厦-305</p>" +

    "</div>";

var map = new BMap.Map("allmap");
var point = new BMap.Point(116.684279, 39.554632);
var point2 = new BMap.Point(116.684299, 39.55605);
var marker = new BMap.Marker(point);
var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
map.centerAndZoom(point, 15);
map.addOverlay(marker);
map.openInfoWindow(infoWindow, point2);
marker.addEventListener("click", function () {
    this.openInfoWindow(infoWindow);

});
